# Contributor: Bjoern Schilberg <bjoern@intevation.de>
# Maintainer: Bjoern Schilberg <bjoern@intevation.de>
pkgname=freexl
pkgver=1.0.5
pkgrel=0
pkgdesc="Library to extract valid data from within an Excel (.xls) spreadsheet"
url="https://www.gaia-gis.it/fossil/freexl/index"
arch="all"
license="MPL-1.1 GPL-2.0-only LGPL-2.1-only"
subpackages="$pkgname-dev"
source="http://www.gaia-gis.it/gaia-sins/freexl-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--host=$CHOST \
		--build=$CBUILD \
		--prefix /usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir"/usr/share/
}
sha512sums="86d742f58353be1f3ab683899a4d914845250b481acc078c769ef337d0a6ea24d25501a3e7c73b95904c6839ddd35f53e58ad4eee0c3b433caa84db0a8c6462b  freexl-1.0.5.tar.gz"
